PHPR API (3.7.0)

Download OpenAPI specification:

PHPR API USING API-PLATFORM

accounting_entries

Retrieves a accounting_entries resource.

Retrieves a accounting_entries resource.

Authorizations:
JWT
path Parameters
id
required
string

accounting_entries identifier

Responses

Response samples

Content type
{
  • "@context": "string",
  • "@id": "string",
  • "@type": "string",
  • "transaction": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "account": {
    },
  • "amount": "string",
  • "comment": "string",
  • "shortcode": "Y",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "id": 0,
  • "slug": "string",
  • "customData": [
    ],
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "toString": "string",
  • "absoluteAmount": 0,
  • "relativeAmount": 0,
  • "dtBalance": 0,
  • "ctBalance": 0,
  • "day": "2019-08-24T14:15:22Z",
  • "customPropertiesListing": "string",
  • "anonymousToken": "string",
  • "uniqueId": "string",
  • "taggingListing": "string",
  • "enabled": true,
  • "disabled": true
}

Replaces the accounting_entries resource.

Replaces the accounting_entries resource.

Authorizations:
JWT
path Parameters
id
required
string

accounting_entries identifier

Request Body schema:
required

The updated accounting_entries resource

object (accounting_transactions.jsonld-post)

Transaction.

createdAt
string <date-time>
object (accounts.jsonld-post)

// @todo No cascade persists because of the generator (issue #1 https://tools.phpcreation.com/confluence/display/PHPRDoc/Bundle_Accounting-Listener_2017)

amount
required
string
comment
string or null
deletedAt
string or null <date-time>
slug
required
string

DB Identifier

customData
Array of strings or null
disabledAt
string or null <date-time>
relativeAmount
number

Get amount relative to account type.

Responses

Request samples

Content type
{
  • "transaction": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "account": {
    },
  • "amount": "string",
  • "comment": "string",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "slug": "string",
  • "customData": [
    ],
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "relativeAmount": 0
}

Response samples

Content type
{
  • "@context": "string",
  • "@id": "string",
  • "@type": "string",
  • "transaction": {
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "account": {
    },
  • "amount": "string",
  • "comment": "string",
  • "shortcode": "Y",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "id": 0,
  • "slug": "string",
  • "customData": [
    ],
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "toString": "string",
  • "absoluteAmount": 0,
  • "relativeAmount": 0,
  • "dtBalance": 0,
  • "ctBalance": 0,
  • "day": "2019-08-24T14:15:22Z",
  • "customPropertiesListing": "string",
  • "anonymousToken": "string",
  • "uniqueId": "string",
  • "taggingListing": "string",
  • "enabled": true,
  • "disabled": true
}

Removes the accounting_entries resource.

Removes the accounting_entries resource.

Authorizations:
JWT
path Parameters
id
required
string

accounting_entries identifier

Responses